export default [
  {
    path: '/',
    redirect: '/home',
    component: resolve => {
      require.ensure([], () => resolve(require('@/pages/index/index')))
    },
    children: [
      {
        name: 'ip',
        path: 'ip',
        component: resolve => {
          require.ensure([], () => resolve(require('@/pages/ip/index')))
        }
      },
      {
        name: 'home',
        path: 'home',
        component: resolve => {
          require.ensure([], () => resolve(require('@/pages/home/index')))
        }
      }
    ]
  },
  {
    name: 'mine',
    path: '/mine',
    component: resolve => {
      require.ensure([], () => resolve(require('@/pages/mine/index')))
    },
    meta: {keepAlive: true}
  },
  {
    name: 'YanZhiDetail',
    path: '/YanZhiDetail',
    component: resolve => {
      require.ensure([], () => resolve(require('@/pages/mine/YanZhiDetail')))
    }
  },
  {
    name: 'YanZhiGoodsDetail',
    path: '/YanZhiGoodsDetail',
    component: resolve => {
      require.ensure([], () => resolve(require('@/pages/mine/YanZhiGoodsDetail')))
    }
  },
  {
    name: 'orderDetail',
    path: '/orderDetail',
    component: resolve => {
      require.ensure([], () => resolve(require('@/pages/mine/orderDetail')))
    }
  }
] 